<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 200px;
            width: 200px;
            border: 1px solid #000;
            margin: 0 auto;
            overflow: hidden;
            margin-bottom: 20px;

        }
        .box::before{
            content: "荣儿的你好";
            display: block;
            height: 100%;
            width: 100%;
            background-color: pink;
            transform: rotate(180deg);
            transform-origin:left bottom;
            transition: all 2s;
          
        }
        .box:hover::before{
            transform: rotate(0deg);
        }

    </style>
</head>
<body>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
</body>
</html>